home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-08-23 | 4.9 KB | 185 lines | [TEXT/MPS ] |
- # This Makefile is for the NDBM_File extension to perl.
- #
-
- # --- MakeMaker post_initialize section:
-
-
- # --- MakeMaker constants section:
-
- NAME = NDBM_File
-
- # Perl library to use when building the extension
- PERL_LIB = :::lib:
-
- # Where is the perl source code located? (Eventually we should
- # be able to build extensions without requiring the perl source
- # but that's a way off yet).
- PERL_SRC = :::
- # Perl header files (will eventually be under PERL_LIB)
- PERL_INC = :::
- # Perl binaries
- PERL = :::miniperl
-
- # FULLEXT = Pathname for extension directory (eg DBD/Oracle).
- # BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT.
- # ROOTEXT = Directory part of FULLEXT with leading slash (eg /DBD)
- FULLEXT = NDBM_File
- BASEEXT = NDBM_File
- ROOTEXT =
-
- # Source code:
- XS= NDBM_File.xs
- C = NDBM_File.c
- H =
-
- PPCEXT = .c.o.PPC
- PPCOBJ = NDBM_File{PPCEXT}
- M68KEXT = .c.o.68K
- M68KOBJ = NDBM_File{M68KEXT}
-
- # This extension may link to it's own library (see SDBM_File)
- MYEXTLIB =
-
- # Where is the Config.pm that we are using/depend on
- CONFIGDEP = {PERL_ARCHLIB}Config.pm
-
- # Where to put things:
- INST_LIBDIR = {PERL_LIB}{ROOTEXT}
- INST_AUTODIR = {PERL_LIB}auto:{FULLEXT}
-
- INST_BOOT = {INST_AUTODIR}{BASEEXT}.bs
- INST_DYNAMIC = {INST_AUTODIR}{BASEEXT}
- INST_STATIC = {BASEEXT}.o
- INST_PM = {INST_LIBDIR}NDBM_File.pm
-
-
- # These definitions are from config.mac (via :::lib:Config.pm)
- PerlOption = -sym on -d MULTIPLICITY -d DEBUGGING
- COptions = -mc68020 -model far
- PPCCOptions = -d macintosh -d __useAppleExts__
- LOptions = -mf -w
- ROptions = -i :
- CC68K = MWC68K {PerlOption}
- CCPPC = MWCPPC {PerlOption}
-
- # Usage: {AUTOSPLITFILE} FileToSplit AutoDirToSplitInto
- AUTOSPLITFILE = {PERL} -I{PERL_LIB} -e 'use AutoSplit; AutoSplit::autosplit_file(${ARGV}[0], ${ARGV}[1], 0, 1, 1) ;'
-
-
- # --- MakeMaker tool_xsubpp section:
-
- XSUBPP = {PERL_SRC}ext:xsubpp
- XSUBPPDEPS = {PERL_SRC}ext:typemap typemap
- XSUBPPARGS = -typemap {PERL_SRC}ext:typemap -typemap typemap
-
-
- # --- MakeMaker tools_other section:
-
- # The following is a portable way to say mkdir -p
- MKPATH = {PERL} -wle '$"="/"; foreach $p (@ARGV){ my(@p); foreach(split(/:/,$p)){ push(@p,${_}); next if -d "@p"; print "mkdir @p"; mkdir("@p",0777)||die $! }} exit 0;'
-
-
- # --- MakeMaker c_o section:
-
- .c.o.68Kƒ .c
- {CC68K} {COptions} -i {PERL_INC} {INC} {Default}.c -o {Default}.c.o.68K
- .c.o.PPCƒ .c
- {CCPPC} {PPCCOptions} -i {PERL_INC} {INC} {Default}.c -o {Default}.c.o.PPC
-
-
- # --- MakeMaker xs_c section:
-
- .c ƒ .xs
- {PERL} {XSUBPP} {XSUBPPARGS} {Default}.xs >{Default}.c
-
-
- # --- MakeMaker top_targets section:
-
- all ƒ static {INST_PM}
-
- install ƒ all
-
- # --- MakeMaker static section:
-
- # {INST_PM} has been moved to the all: target.
- # It remains here for awhile to allow for old usage: "make static"
- static ƒ {INST_STATIC}.PPC {INST_STATIC}.68K {INST_PM}
-
- {INST_STATIC}.PPCƒ {PPCOBJ}
- MWLinkPPC -sym on -o {INST_STATIC}.PPC -xm library {PPCOBJ}
- {INST_STATIC}.68Kƒ {M68KOBJ}
- MWLink68K -sym on -o {INST_STATIC}.68K -xm library {M68KOBJ}
-
- # --- MakeMaker installpm section:
-
- # installpm: NDBM_File.pm => {INST_LIBDIR}NDBM_File.pm, splitlib={INST_LIBDIR}
-
- {INST_LIBDIR}NDBM_File.pmƒ NDBM_File.pm
- Delete -i -y {INST_LIBDIR}NDBM_File.pm
- Duplicate NDBM_File.pm {INST_LIBDIR}NDBM_File.pm
- {AUTOSPLITFILE} {INST_LIBDIR}NDBM_File.pm {INST_LIBDIR}auto
-
-
- clean ƒ
- # rm -f *~ t/*~ *.o *.a mon.out core so_locations {BOOTSTRAP} {BASEEXT}.bso
- # rm -rf dl_next.c dl_none.c dl_mac.c dl_aix.c dl_dlopen.c dl_dld.c dl_hpux.c dl_vms.c NDBM_File.c
-
-
- # --- MakeMaker realclean section:
-
- # Delete temporary files (via clean) and also delete installed files
- #realclean purge :: clean
- # rm -f Makefile {INST_DYNAMIC} {INST_STATIC} {INST_BOOT} {INST_PM}
- # rm -rf {INST_AUTODIR} {INST_ARCHAUTODIR}
-
-
- # --- MakeMaker distclean section:
-
- # distclean: clean
- # @:
- # rm -f ./Makefile
- # # cd ..; tar cvf {DISTNAME}-{VERSION}.tar {BASEEXT}
- # cd ..; compress {DISTNAME}-{VERSION}.tar
- # @:
-
-
- # --- MakeMaker test section:
-
- # test :: all
- # @echo 'No tests defined for {NAME} extension.'
-
-
- # --- MakeMaker install section:
-
- # install :: all
- # install is not defined. Makefile, by default, builds the extension
- # directly into {INST_LIB} so "installing" does not make much sense.
- # If INST_LIB is in the perl source tree then installperl will install
- # the extension when it installs perl.
-
-
- # --- MakeMaker force section:
- # Phony target to force checking subdirectories.
- # FORCE:
-
-
- # --- MakeMaker perldepend section:
-
- PERL_HDRS = {PERL_INC}EXTERN.h {PERL_INC}INTERN.h ∂
- {PERL_INC}XSUB.h {PERL_INC}av.h {PERL_INC}cop.h ∂
- {PERL_INC}cv.h {PERL_INC}dosish.h {PERL_INC}embed.h ∂
- {PERL_INC}form.h {PERL_INC}gv.h {PERL_INC}handy.h ∂
- {PERL_INC}hv.h {PERL_INC}keywords.h {PERL_INC}mg.h ∂
- {PERL_INC}op.h {PERL_INC}opcode.h {PERL_INC}patchlevel.h ∂
- {PERL_INC}perl.h {PERL_INC}perly.h {PERL_INC}pp.h ∂
- {PERL_INC}proto.h {PERL_INC}regcomp.h {PERL_INC}regexp.h ∂
- {PERL_INC}scope.h {PERL_INC}sv.h {PERL_INC}unixish.h ∂
- {PERL_INC}util.h
-
- # {OBJECT} ƒ {PERL_HDRS}
-
- # --- MakeMaker postamble section:
-
-
- # End.
-